home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_gs / BIN / PDF2PS < prev    next >
Text File  |  1999-09-17  |  339b  |  20 lines

  1. #!/bin/sh
  2. # Convert PDF to PostScript.
  3.  
  4. OPTIONS=""
  5. while true
  6. do
  7.     case "$1" in
  8.     -*) OPTIONS="$OPTIONS $1" ;;
  9.     *)  break ;;
  10.     esac
  11.     shift
  12. done
  13.  
  14. if [ $# -ne 2 ]; then
  15.     echo "Usage: `basename $0` [-dPSBinaryOK] [-dPSLevel1] [-dPSNoProcSet] input.pdf output.ps" 1>&2
  16.     exit 1
  17. fi
  18.  
  19. exec gs -q -dNODISPLAY -sPSFile=$2 -dNOPAUSE $OPTIONS $1 -c quit
  20.